from PIL import Image
import numpy as np

image = Image.fromarray(np.uint8(np.loadtxt('example.csv') * 255))
if input('q mean not,other mean ok:') != 'q':
    image.save(input('name:')+'.png')
image.show()
